
public class Counter {

	final int MAX_COUNT=50;
	int step=1;
	int count=1;
	
	public void displayCount(){
		while(count<= MAX_COUNT){
			System.out.println(count);
			count=count + step;
		
		}
	}
	
}
